package com.lwl.blue.excel.item;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * <p>  </p>
 *
 * @Date: 2021/11/24 10:34
 * @version: V1.0
 * @Decription:
 * @author: 蓝文良
 */
@Data
public class ItemImport {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = "")
    @ExcelProperty(value = "id", index = 0)
    private Integer id;
    @ApiModelProperty(name = "itemName", value = "产品名称")
    @ExcelProperty(value = "产品名称", index = 1)
    private String itemName;
    @ApiModelProperty(name = "itemNo", value = "产品编号")
    @ExcelProperty(value = "产品编号", index = 2)
    @NotBlank(message = "产品编号不能为空")
    private String itemNo;
    @ApiModelProperty(name = "itemType", value = "产品类型")
    @ExcelProperty(value = "产品类型", index = 3)
    private String itemType;
    @ApiModelProperty(name = "itemUnit", value = "产品单位")
    @ExcelProperty(value = "产品单位", index = 4)
    private String itemUnit;
    @ApiModelProperty(name = "itemWeight", value = "产品重量")
    @ExcelProperty(value = "产品重量", index = 5)
    private BigDecimal itemWeight;
    @ApiModelProperty(name = "itemQuality", value = "材质分析")
    @ExcelProperty(value = "材质分析", index = 6)
    private String itemQuality;
    @ApiModelProperty(name = "customerItemsNo", value = "客人货号")
    @ExcelProperty(value = "客人货号", index = 7)
    private String customerItemsNo;
    @ApiModelProperty(name = "supplierItemsNo", value = "工厂货号")
    @ExcelProperty(value = "工厂货号", index = 8)
    private String supplierItemsNo;
    @ApiModelProperty(name = "supplierPrice", value = "工厂价格")
    @ExcelProperty(value = "工厂价格", index = 9)
    private BigDecimal supplierPrice;
    @ApiModelProperty(name = "supplierPrice", value = "是否含税")
    @ExcelProperty(value = "是否含税", index = 10)
    private String isTax;
    @ApiModelProperty(name = "itemSizeLength", value = "产品尺寸-长")
    @ExcelProperty(value = {"产品尺寸", "长"}, index = 11)
    private BigDecimal itemSizeLength;
    @ApiModelProperty(name = "itemSizeWidth", value = "产品尺寸-宽")
    @ExcelProperty(value = {"产品尺寸", "宽"}, index = 12)
    private BigDecimal itemSizeWidth;
    @ApiModelProperty(name = "itemSizeHeight", value = "产品尺寸-高")
    @ExcelProperty(value = {"产品尺寸", "高"}, index = 13)
    private BigDecimal itemSizeHeight;
    @ApiModelProperty(name = "innerBoxSizeLength", value = "内箱-长")
    @ExcelProperty(value = {"内箱", "长"}, index = 14)
    private BigDecimal innerBoxSizeLength;
    @ApiModelProperty(name = "innerBoxSizeWidth", value = "内箱-宽")
    @ExcelProperty(value = {"内箱", "宽"}, index = 15)
    private BigDecimal innerBoxSizeWidth;
    @ApiModelProperty(name = "innerBoxSizeHeight", value = "内箱-高")
    @ExcelProperty(value = {"内箱", "高"}, index = 16)
    private BigDecimal innerBoxSizeHeight;
    @ApiModelProperty(name = "boxSizeLength", value = "外箱-长")
    @ExcelProperty(value =  {"外箱", "长"}, index = 17)
    private BigDecimal boxSizeLength;
    @ApiModelProperty(name = "boxSizeWidth", value = "外箱-宽")
    @ExcelProperty(value = {"外箱", "宽"}, index = 18)
    private BigDecimal boxSizeWidth;
    @ApiModelProperty(name = "boxSizeHeight", value = "外箱-高")
    @ExcelProperty(value = {"外箱", "高"}, index = 19)
    private BigDecimal boxSizeHeight;
    @ApiModelProperty(name = "boxSroughWeight", value = "外箱-毛重")
    @ExcelProperty(value = "外箱-毛重", index = 20)
    private BigDecimal boxSroughWeight;
    @ApiModelProperty(name = "innerBoxNumber", value = "內盒数量")
    @ExcelProperty(value = "內盒数量", index = 21)
    private BigDecimal innerBoxNumber;
    @ApiModelProperty(name = "boxNumber", value = "外箱数量")
    @ExcelProperty(value = "外箱数量", index = 22)
    private BigDecimal boxNumber;
    @ApiModelProperty(name = "supplierId", value = "工厂ID")
    @ExcelProperty(value = "工厂ID", index = 23)
    @NotNull(message = "工厂ID不能为空")
    private Integer supplierId;
}
